<?php
// +----------------------------------------------------------------------
// | HisiPHP框架[基于ThinkPHP5.1开发]
// +----------------------------------------------------------------------
// | Copyright (c) 2016-2021 http://www.HisiPHP.com
// +----------------------------------------------------------------------
// | HisiPHP承诺基础框架永久免费开源，您可用于学习和商用，但必须保留软件版权信息。
// +----------------------------------------------------------------------
// | Author: 橘子俊 <364666827@qq.com>，开发者QQ群：50304283
// +----------------------------------------------------------------------

namespace app\common\controller;

use app\system\admin\Admin;

/**
 * 微信公众号公共控制器
 * @package app\common\controller
 */
class WechatAdmin extends Admin
{

	protected function initialize() {
		parent::initialize();

		$weChatScript = \We::WeChatScript(config('wechat.'));
		$wxConfig = $weChatScript->getJsSign($this->request->url(true));
		$this->assign('wxConfig', $wxConfig);

		$this->view->engine->layout('system@layout_full');
	}

}
